package com.cnhis.cloudhealth.clinical.clidoctor.patientcase.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.cnhis.cloudhealth.commons.dao.BaseDao;
import com.cnhis.cloudhealth.commons.utils.Page;
@SuppressWarnings("rawtypes")
@Repository
public class PatientCaseDao extends BaseDao{
	public Page patientCaseReminder(Map map ,int currentPage,int pageSize)throws Exception{
			return this.queryForPage("PatientCase.patientCaseReminder", map, currentPage, pageSize);
		}
	public Page patientCaseList(Map map ,int currentPage,int pageSize)throws Exception{
		return this.queryForPage("PatientCase.patientCaseList", map, currentPage, pageSize);
	}
	public Page patientEfficaciousCase(Map map ,int currentPage,int pageSize)throws Exception{
		return this.queryForPage("PatientCase.patientEfficaciousCase", map, currentPage, pageSize);
	}
	public Map setparameters(Map map)throws Exception{
		return (Map)this.queryForExtObject("PatientCase.setParameter", map);
	}
	public Page viewInspectionReport(Map map,int currentPage,int pageSize)throws Exception{
		return this.queryForPage("PatientCase.viewInspectionReport", map, currentPage, pageSize);
	}
    public List findDefaultInstrumentEquipment()throws Exception{
		return this.queryForList("PatientCase.findDefaultInstrumentEquipment", null);
	}
    public Page conventionResult(Map map,int currentPage,int pageSize)throws Exception{
    	return this.queryForPage("PatientCase.conventionResult", map, currentPage, pageSize);
    }
    public Page inspectionReportImage(Map map,int currentPage,int pageSize)throws Exception{
    	return this.queryForPage("PatientCase.inspectionReportImage", map, currentPage, pageSize);
    }
    public Page doctorConventionResult(Map map,int currentPage,int pageSize)throws Exception{
    	return this.queryForPage("PatientCase.doctorConventionResult", map, currentPage, pageSize);
    }
    public Page doctorViewImage(Map map,int currentPage,int pageSize)throws Exception{
    	return this.queryForPage("PatientCase.doctorViewImage", map, currentPage, pageSize);
	}
    public Page doctorViewImageReport(Map map,int currentPage,int pageSize)throws Exception{
    	return this.queryForPage("PatientCase.doctorViewImageReport", map, currentPage, pageSize);
	}
    public List restrictedCondition(Map map)throws Exception{
    	return this.queryForList("PatientCase.restrictedCondition", map);
	}
    public List getLastHistory(Map map)throws Exception{
    	return this.queryForList("PatientCase.getLastHistory", map);
    }
    public List getHospitalLastHistory(Map map,int currentPage,int pageSize)throws Exception{
    	return this.queryForList("PatientCase.getHospitalLastHistory", map);
    }
    public Map queryParamter(Map map)throws Exception{
    	return (Map)this.queryToObject("PatientCase.queryParamter", map);
    }
    
    public Page patientCaseHistory(Map map,int currentPage,int pageSize) throws Exception{
    	return this.queryForPage("PatientCase.patientCaseHistory", map, currentPage, pageSize);
    }
    public List getPatinetCase(Map map)throws Exception{
    	return this.queryForList("PatientCase.getPatinetCase", map);
    }
    public List fetchPatientSummary(Map map)throws Exception{
    	return queryForList("PatientCase.fetchPatientSummary", map);
    }
    public Integer checkPatientCase(long vaq01)throws Exception{
    	return (Integer) queryForExtObject("PatientCase.checkPatientCase", vaq01);
    }
    public Integer existsParam()throws Exception{
    	return (Integer) queryForExtObject("PatientCase.existsParam", null);
    }
    public Map getTmpVAQ(Map map)throws Exception{
    	return (Map) queryForExtObject("PatientCase.getTmpVAQ", map);
    }
    public Map getParams(Map map)throws Exception{
    	return (Map) queryForExtObject("PatientCase.getParams", map);
    }
    public Map getOffice(Map map)throws Exception{
    	return (Map) queryForExtObject("PatientCase.getOffice", map);
    }
    public Integer getROWNR(Map map)throws Exception{
    	return (Integer) queryForExtObject("PatientCase.getROWNR", map);
    }
    public void insertVAQ(Map map)throws Exception{
    	insert("PatientCase.insertVAQ", map);
    }
    public Integer existsCAF(Map map)throws Exception{
    	return (Integer) queryForExtObject("PatientCase.existsCAF", map);
    }
    public Integer existsCAF1(Map map)throws Exception{
    	return (Integer) queryForExtObject("PatientCase.existsCAF1", map);
    }
    public Integer existsCAF2(Map map)throws Exception{
    	return (Integer) queryForExtObject("PatientCase.existsCAF2", map);
    }
    public Integer existsCAF3(Map map)throws Exception{
    	return (Integer) queryForExtObject("PatientCase.existsCAF3", map);
    }
    public Integer existsCAF4(Map map)throws Exception{
    	return (Integer) queryForExtObject("PatientCase.existsCAF4", map);
    }
    public int getCAF05(Map map)throws Exception{
    	return (int) queryForExtObject("PatientCase.getCAF05", map);
    }
    public String getVAQ32(Map map)throws Exception{
    	return (String) queryForExtObject("PatientCase.getVAQ32", map);
    }
    
    public int getCAF1(Map map)throws Exception{
    	return (int) queryForExtObject("PatientCase.getCAF1", map);
    }
    public String getVAQ1(Map map)throws Exception{
    	return (String) queryForExtObject("PatientCase.getVAQ1", map);
    }
    public int getCAF2(Map map)throws Exception{
    	return (int) queryForExtObject("PatientCase.getCAF2", map);
    }
    public int getCAF3(Map map)throws Exception{
    	return (int) queryForExtObject("PatientCase.getCAF3", map);
    }
    public int getCAF4(Map map)throws Exception{
    	return (int) queryForExtObject("PatientCase.getCAF4", map);
    }
    public String getVAQ2(Map map)throws Exception{
    	return (String) queryForExtObject("PatientCase.getVAQ2", map);
    }
    public void saveVAQ(Map map)throws Exception{
    	insert("PatientCase.saveVAQ", map);
    }
    public void saveVAR(Map map)throws Exception{
    	insert("PatientCase.saveVAR", map);
    }
    public void saveVCC1(Map map)throws Exception{
    	insert("PatientCase.saveVCC1", map);
    }
    public void updateVAQ1(Map map)throws Exception{
    	update("PatientCase.updateVAQ1", map);
    }
    public void updateVAR1(Map map)throws Exception{
    	update("PatientCase.updateVAR1", map);
    }
    public void updateVBT1(Map map)throws Exception{
    	update("PatientCase.updateVBT1", map);
    }
    public void updateVaq1(Map map)throws Exception{
    	update("PatientCase.updateVaq1", map);
    }
    public void updateVAQState4(Map map)throws Exception{
    	update("PatientCase.updateVAQState4", map);
    }
    public int  empPermissionValue(Map map)throws Exception{
    	return (int) queryForExtObject("PatientCase.empPermissionValue", map);
    }
    public void updateVAQState5(Map map)throws Exception{
    	update("PatientCase.updateVAQState5", map);
    }
    public void updateVAQState6(Map map)throws Exception{
    	update("PatientCase.updateVAQState6", map);
    }
    public void updateVAQState7(Map map)throws Exception{
    	update("PatientCase.updateVAQState7", map);
    }
    public Page findHistory(Map map,int currPage,int pageSize)throws Exception{
    	return queryForPage("PatientCase.findHistory", map, currPage, pageSize);
    }
    public void updateVAQ32(Map map)throws Exception{
    	update("PatientCase.updateVAQ32", map);
    }
    public void insertVCC1(Map map)throws Exception{
    	insert("PatientCase.insertVCC1", map);
    }
    public void insertVCU1(Map map)throws Exception{
    	insert("PatientCase.insertVCU1", map);
    }
    public void updateVAQ1Title(Map map)throws Exception{
    	update("PatientCase.updateVAQ1Title", map);
    }
    public Map params(Map map)throws Exception{
    	return (Map) queryForExtObject("PatientCase.params", map);
    }
    public void insertQAD1(Map map)throws Exception{
    	insert("PatientCase.insertQAD1", map);
    }
   public void updateQAD1(Map map)throws Exception{
	   insert("PatientCase.updateQAD1", map);
   }
}
